<?php

require_once ('Logger/Appender/Abstraction.php');

class Logger_Appender_Echo extends Logger_Appender_Abstraction {
	
protected function _append(Logger_Event $event) {
  
    
        $msg = $this->_layout->format ( $event );
        $this->_bufferSize += strlen ( $msg );
        $this->_logBuffer [] = $msg;
        
        if ($this->_bufferSize >= $this->_options['buffer'])
            $this->_flush ();
    }
    protected function _flush() {
      
       
    echo "<br>".implode ( "<br>", $this->_logBuffer );
    $this->_bufferSize  =   0;
    $this->_logBuffer   =   array();
    }
    
    protected function _close()
    {
        
    }
}

?>